package com.chaoXing.work3.wor3_3;

import java.io.*;

public class Test {
    public static final String TEXT="sss";
    public static void main(String[] args) throws Exception {
        try {
            Collection collection=new Collection(new DateBase());
            collection.save(TEXT);
        } catch (Exception e) {
            System.out.println("数据库存储方式异常了，调用文件重新存储");
            Collection fi=new Collection(new FileSave());
            fi.save(TEXT);
        }
    }
}
